﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ExportExeclUAgentMacStockList.aspx.cs" Inherits="IHISCETeim.Web.MachineSys.UserModel.ExportExecl.ExportExeclUAgentMacStockList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:repeater id="rpMenu" runat="server">
        <HeaderTemplate>
        <table cellspacing="0" rules="all" border="1" style="border-collapse: collapse;">
        <thead>
            <tr  >                   
                <th  orderField="SerialNumber" class="asc" width="85px">
                    机号
                </th>                
               <th width="90">
                    代理商
                </th> 
                <th orderField="IntoStockDate" class="asc" width="70px">
                    入库时间
                </th>
                <th  align="center" width="90px">
                    是否已交机
                </th>
                 <th width="70px">
                    交机时间
                </th>
                <th align="center" width="65px">
                    需点检次数
                </th>
                <th align="center" width="65px">
                    已点检次数
                </th>
                 <th align="center" width="65px">
                    未点检次数
                </th>  
                <th >
                    
                </th>        
            </tr>
        </thead>
        <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr target="sid_user" rel="<%# Eval("UASID") %>"> 
				<td>
                <%# Eval("SerialNumber")%>
                </td>
                 <td>
                    <%# Eval("AgentName")%>
                </td>  
				<td><%# Eval("IntoStockDate")%></td>
			
                <td><%# Convert.ToBoolean(Eval("IsInto"))?"是":"<b style='color:red'>否</b >"%></td>
                <td><%# Eval("IntoDate")%></td>
                <td>
                <%# Eval("d1")%>
                </td>
                 <td>
                <%# Eval("d2")%>
                </td>
                 <td>
                <%# GetNoSingNum(Eval("d1"), Eval("d2"))%>
                </td>
                 <td></td>
			</tr>
        </ItemTemplate>
        <FooterTemplate>
            <tr> 
				<td>
               
                </td>
                 <td>
                    
                </td>  
				<td></td>
			
                <td></td>
                <td></td>
                <td>
                <%=SUMDT.Rows[0]["d1"]%>
                </td>
                 <td>
                <%=SUMDT.Rows[0]["d2"]%>
                </td>
                 <td>
              <%=Convert.ToInt32(SUMDT.Rows[0]["d1"])==0?"0":(Convert.ToInt32(SUMDT.Rows[0]["d1"]) - Convert.ToInt32(SUMDT.Rows[0]["d2"])).ToString()%>
                </td>
                 <td>
                 点检完成率为: <%= Convert.ToDouble(SUMDT.Rows[0]["d1"]) == 0 ? "100" : (Convert.ToDouble(Convert.ToDouble(SUMDT.Rows[0]["d2"]) / Convert.ToDouble(SUMDT.Rows[0]["d1"])) * 100).ToString("F2")%>%
                 </td>
			</tr>
        </tbody>
    </table>
    </FooterTemplate> 
    </asp:repeater>
    </form>
</body>
</html>
